package com.xiaomo.gitee.datamanager.security.service;

import com.xiaomo.gitee.datamanager.dto.security.UserDTO;
import com.xiaomo.gitee.datamanager.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaomo.gitee.datamanager.common.exception.UsernameExistedException;
import org.springframework.security.core.userdetails.UserDetailsService;


public interface UserService extends IService<User>,UserDetailsService {

    void register(UserDTO user) throws UsernameExistedException;

    boolean deleteUser(String username);

}
